<layout name="Iflayout"/>
<script src="/public/js/jquery.js"></script>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                <switch name="level" >
                    <case value="1">添加控制器</case>
                    <case value="2">添加方法</case>
                    <default />添加节点</switch>
                	  </h3>
        </div>

    </div>


    <div class="row">
        <div class="col-lg-12">

            <form method='post' class="form-horizontal" id="form_do" name="form_do" action="{:U('Node/add')}">

                <div class="form-group">
                    <label for="inputName" class="col-sm-2 control-label">名称</label>
                    <div class="col-sm-9">
                        <input type="text" name="name" id="inputName" class="form-control" placeholder="名称" required="required" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputTitle" class="col-sm-2 control-label">方法描述</label>
                    <div class="col-sm-9">
                        <input type="text" name="title" id="inputTitle" class="form-control" placeholder="描述" required="required" />
                    </div>
                </div>

                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">开启</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" name="status" value="1" checked="checked"  />开启</label>
                        <label class="radio-inline">
                            <input type="radio" name="status" value="0" />关闭</label>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputSort" class="col-sm-2 control-label">排序</label>
                    <div class="col-sm-9">
                        <input type="text" name="sort" id="inputSort" class="form-control" placeholder="排序" />
                    </div>
                </div>

                <div class="row margin-botton-large">
                    <div class="col-sm-offset-2 col-sm-9">
                        <input type="hidden" name="pid" value="{$pid1}" />
                        <input type="hidden" name="level" value="{$level1}" />
                        <div class="btn-group">
                            <button type="submit" class="btn btn-primary" name="sub" value="sub"> <i class="glyphicon glyphicon-saved"></i>
                                保存
                            </button>
                            <button type="button" onclick="goUrl('{:U('Node/index')}')" class="btn btn-default"> <i class="glyphicon glyphicon-chevron-left"></i>
                                返回
                            </button>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
